const express = require('express')
const app = express()
// app.use((req, res, next) => {
//   res.redirect('/')
// })

console.log(__dirname)
app.use(express.static(__dirname))

const port = process.env.PORT || 9090
module.exports = app.listen(port, () => {
  console.log(`Server listening on http://localhost:${port}, Ctrl+C to stop`)
})
